/*颜色区*/
/*
 8月26日新需求 start
*/
$color-146: #0648C5;
$color-126: rgba(18,99,230,1);
$color-4c9: #4c90fd;
$color-1f3: #1F3693;
$color-1e3: #1E358F;
@mixin ems-border($size: 2) {
  border: $size + px solid $color-1f3;
}
// end
$color: #7DA1FF; // 字的主题色
$font-f: #fff; // 白色
$font-24: 24px;
$font-36: 36px;
$header-h: 80px; // 主页高度
$header-color: #0E183C; // 各个系统的头部浅淡色
$header-light: #111E49; // 各个系统的头部主题色
$header-box: rgba(14,27,61,.6); // 各个系统的 盒子背景色
$header-box-s: rgba(15,27,67,.6); // 各个系统 的 盒子里面的小盒子背景色
$btn-blue: rgba(76,144,253,1); // 蓝色按钮
$bg-home: rgba(255,255,255,0.1);
$bg-date: #0c183e; // 封装的时间组件的背景色
$bg-date-hover: #376AC3; // 封装的时间组件的背景色激活色
$same-padding : 0 60px; // 各个页面的内边距
//monitoring.vue start
$same-bgc: rgba(15, 27, 67, 0.5);
$main-h: 806px;
$main-r-item: 55px;
/*$table-border-color: #1e3e85;*/
$table-border-color: #182D6B;
$table-row-odd-bgc: #15275b;
$table-row-even-bgc: #132355;
//弹框background
$modelbg: rgba(20, 38, 89, 1);
// end
/*minxin区*/
//新增的EMS一级页面start
//$sbgc: rgba(17, 52, 150, 0.21); //每个方块的背景色
$sbgc: $color-1e3;
//每个方块的标题的样式封装
/* $lineheight--线条的高度， $linecolor--线条的颜色 ， $fontcolor--字体颜色， $fontsize--字体大小*/
@mixin head-title ($margintop,$lineheight , $linecolor ,$fontcolor, $fontsize) {
  .header-title {
    margin-top: $margintop;
    .title-line {
      display: inline-block;
      width: 4px;
      height: $lineheight;
      background: $linecolor;
      margin: 8px 8px 0 30px;
      vertical-align: top;
    }
    .chart-title {
      font-size: $fontsize;
      color: $fontcolor;
      em{
        font-style: normal;
        font-size: 16px;
        margin-left: 4px;
      }
    }
  }
}
//右边的方块中的用量数据
@mixin big-num ($fontcolor) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 50px 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  color: $fontcolor;
}
//环比跟pki的公共样式
@mixin total-chain ($bordercolor, $fontcolor, $bgcolor) {
  color: $fontcolor;
  font-size: 16px;
  font-weight: lighter;
  border: 1px solid $bordercolor;
  height: 26px;
  width: 102px;
  background: $bgcolor;
  line-height: 26px;
  text-align: center;
}
//环比小的数据&&百分比
@mixin per-num {
  margin-top: 14px;
  font-size: 14px;
  color:rgba(255,255,255,1);
  .sm-per {
    margin-left: 4px;
    font-weight: lighter;
    color: #c4cee7;
    font-size: 14px;
  }
}

// end
@mixin border {
  border: 1px solid transparent;
}
@mixin date-border {
  border: 1px solid #4C90FD;
}
@mixin border-radius {
  border-radius: 5px;
}
@mixin flex {
  display: flex;
  justify-content: center;
  align-items: center;
  display:-ms-flexbox;
  -ms-flex-align:center;
  -ms-flex-pack:center;
  flex-direction: column;
  -ms-flex-direction: column;
}
@mixin system-bg {
  width: 100%;
  min-width: 1920px;
  min-height: 1080px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #142156 url("../../assets/image/icon-login-bg.png") repeat top;
}
@mixin row-first-r {
  text-align: right;
  line-height: 40px;
  color: #fff;
  font-size: 14px;
  span:first-child {
    padding-right: 20px;
  }
}
@mixin line2Ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@mixin modalFixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
@mixin list-status {
  flex: 0 0 98px;
  flex-direction: column;
  text-align: left;
  padding-left: 24px;
  background-color: $header-box-s;
  h4 {
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    span {
      margin-right: 6px;
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      padding: 0;
    }
  }
  h4:nth-child(1) {
    span {
      background-color: #45A63C;
    }
  }
  h4:nth-child(2) {
    span {
      background-color: #605E62;
    }
  }
  h4:nth-child(3) {
    span {
      background-color: #A81430;
    }
  }
}
@mixin list-img {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -45%;
    left: 0%;
  }
}
@mixin fieldset {
  width: 100%;

  .field-title {
    width: 100%;
    height: 50px;
    font-size: 18px;
    color: #fff;
    line-height: 50px;
    text-align: center;
    font-weight: 400;
    margin-top: 10px;
  }

  .one-field {
    margin-top: 0;
    background: rgba(72, 204, 209, 0.5);
  }

  .tow-field {
    background: rgba(126, 92, 252, 0.5);
  }

  .three-field {
    background: rgba(76, 144, 253, 0.5);
  }

  .field-list {
    ul {
      height: 212px;
      background-color: rgba(125, 161, 255, .1);
      overflow-y: auto;
      li {
        height: 70.58px;
        width: 50%;
        float: left;
        text-align: center;
        padding: 12.8px 0;
        border-bottom: 1px solid rgba(125, 161, 255, .4);
        p{
          line-height: 1;
        }
        p:nth-of-type(1) {
          font-size: 24px;
          font-weight: 200;
          color: #fff;
          margin-bottom: 6px;
        }

        p:nth-last-of-type(1) {
          font-size: 14px;
          font-weight: normal;
          color: rgba(125, 161, 255, 1);
        }
      }

      li:nth-of-type(2n - 1) div {
        border-right: 2px solid rgba(125, 161, 255, .4);
      }
    }
  }
}
//弹框关闭icon
@mixin modelClose {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  z-index: 99999;
  &:hover {
    cursor: pointer;
  }
}
//空压系统下各个页面的样式
@mixin monitoring {
  width: 1800px;
  margin: 0 auto;
  .monitor-h {
    height: 80px;
    margin-bottom: 10px;
    background-color: $same-bgc;
    #monitorBtn{
      margin-top: 20px;
      margin-left: 20px;
    }
  }

  .monitor-m {
    .air-pressure {
      .main-l {
        width: 100%;
        height: $main-h;
        background-color: $same-bgc;
        position: relative;

        img {
          display: block;
          margin: 0 auto;
        }
        .lines{
          position: absolute;
          top: 26px;
          left: 36px;
        }
        .base-select{
          position: absolute;
          top: 34px;
          right: 62px;
          z-index: 99999;
        }
      }

      .main-r {
        width: 292px;
        .fieldset{
          @include fieldset
        }
      }
    }

    .use-gas {
      #wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 530px;
        padding: 30px 0 10px 10px;

        .container-left {
          flex: 0 0 100px;
          height: 100%;
          text-align: right;
          padding-right: 10px;

          span {
            font-size: 24px;
            color: #4C90FD;
            vertical-align: text-bottom;
            padding-right: 5px;
          }

          div {
            display: inline-block;
            width: 0;
            height: 0;
            border-top: 15px solid transparent;
            border-left: 15px solid #4C90FD;
            border-bottom: 15px solid transparent;
          }
        }

        #canvas {
          flex: 1;
        }
      }
      .top-canvas {
        background: $same-bgc;
      }

      .bottom-table {
        width: 100%;
        color: #fff;
        font-size: 16px;
        .table-b {
          width: 100%;
          display: flex;

          .table-b-list {
            flex: 1;
            text-align: center;

            li {
              height: 44px;
              line-height: 44px;
              background-color: $table-row-odd-bgc;
              /*margin-top: 2px;*/
              /*margin-left: 2px;*/
              border-left: 2px solid #182d6b;
              border-top: 2px solid #182d6b;
            }

            li:nth-of-type(2n-1) {
              background-color: $table-row-even-bgc;
            }
          }

          .table-b-list:nth-of-type(1) {
            flex: 0 0 140px;

            li {
              /*margin-left: 0px;*/
              border-left: 2px solid transparent;
            }
          }
        }
      }
    }
  }
}
@mixin controllers {
  flex: 1;
  width: 1800px;
  margin: 0 auto;
  .monitor-h {
    height: 80px;
    margin-bottom: 10px;
    background-color: $same-bgc;
    #monitorBtn{
      margin-top: 20px;
      margin-left: 20px;
    }
  }
  .c-row {
    display: flex;
    height: 410px;
    margin-bottom: 10px;
    .row-l {
      //flex: 0 0 61.4%;
      margin-right: 10px;
      background-color: $header-box;
      padding: 24px 0;
      @include row-first-r;
      height: 100%;
    }
    .row-r {
      //flex: 1;
      background-color: $header-box;
      padding: 24px 0;
      @include row-first-r;
      height: 100%;
    }
    .row-img-container {
      padding: 0 12px;
      overflow-x: scroll;
      overflow-y: hidden;
    }
    .row-img {
      display: flex;
      height: 60px;
      margin: 40px 0 5px 0;
      .list-status {
        @include list-status;
      }
      ul {
        display: flex;
        flex: 1;
        padding-right: 1px;
        li {
          &:hover {
            cursor: pointer;
          }
          /*flex: 1;*/
          float: left;
          margin-left: 10px;
          padding: 0 10px;
          background-color: $header-box-s;
          width: 130px;
          height: 100%;
          line-height: 24px;
          .list-img {
            @include list-img;
          }
        }
      }
    }
    .row-list {
      text-align: left;
      line-height: 0;
      overflow: auto;
      padding: 0 12px;
      height: 56%;
      display: flex;
      .row-list-ul {
        display: flex;
        flex: 1;
        .row-list-r {
          /*flex: 1;*/
          float: left;
          margin-left: 10px;
          width: 130px;
          li {
            padding: 0 10px;
            height: 28px;
            line-height: 28px;
            background-color: $header-box-s;
          }
        }
      }
      .row-list-l {
        flex: 0 0 98px;
        /*padding: 0 10px;*/
        text-align: center;
        li {
          height: 28px;
          line-height: 28px;
          background-color: $header-box-s;
        }
      }
    }
  }
  #mEcharts {
    @include modalFixed;
    .line-box {
      width: 90%;
      min-height: 720px;
      background-color: rgba(20, 38, 89, 1);
      color: $font-f;
      padding: 30px 0 20px 30px;
      .line-box-head {
        #widthScroll {;
          width: 600px;
          height: 50px;
          overflow: auto;
          display: inline-block;
          .widthScroll {
            width: auto;
            white-space: nowrap;
            display: inline-block;
          }
        }
        h2 {
          display: inline-block;
          padding-left: 20px;
          border-left: 3px solid #43CCBA;
        }
        .mar-left-10 {
          margin-left: 10px;
        }
        .icon-hold {
          display: inline-block;
          width: 20px;
          margin-top: 10px;
          height: 20px;
          background: url('../' + $image + 'icon_hold.png') no-repeat center center;
          background-size: 100% 100%;
        }
      }
    }
    #lineCharts {
      height: 630px;
    }
  }
}
@mixin energy {
  width: 1800px;
  margin: 0 auto;
  .mar-right-ss {
    margin-right: 10px;
  }
  /*时间选择器*/
  .chooseTime {
    display: flex;
    margin-bottom: 30px;
    .dateBtn {
      margin-top: 2px;
      margin-left: 10px;
    }
  }
  /*用量选项*/
  .dosage-item {
    height: 100px;
    border-radius: 2px;
    background-color: rgba(12, 24, 62, 0.7);
    font-size: 18px;
    margin-bottom: 10px;
    .use-type {
      width: 100%;
      padding-top: 13px;
      padding-left: 28px;
    }
    .use-num {
      width: 100%;
      text-align: center;
      span {
        font-size: 28px;
        font-family: MicrosoftYaHei;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
      }
      em {
        font-size: 16px;
        font-style: normal;
        margin-left: 15px;
      }
    }
  }

  /*图表公共样式*/
  .public {
    background-color: rgba(15, 27, 67, 0.6);
    border-radius: 2px;
    height: 348px;
    margin-bottom: 10px;
    padding-top: 20px;
    .padd-r {
      padding-right: 30px;
    }
    .dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      background-color: #999999;
      border-radius: 50%;
      margin-right: 8px;
    }
    .char-title-line {
      height: 18px;
      width: 3px;
      margin: 3px 18px 0 28px;
      background-color: #43CCBA;
    }
    .char-title {
      line-height: 0;
      font-size: 20px;
      color: #7DA1FF;
    }
    .char-title-left {
      float: left;
    }
    .char-title-right {
      float: right;
      display: flex;
      font-size: 12px;
      color: #fff;
      .small-circle {
        margin: 0 6px 0 9px;
        background-color: #999;
      }
      .total-gas {
        margin-left: 10px;
        width: 76px;
        height: 26px;
        line-height: 26px;
        border-radius: 14px;
        background-color: #0e1b3d;
        -webkit-border-radius: 14px;
        -moz-border-radius: 14px;
        &:hover {
          cursor: pointer;
        }
      }
      .variety-gas {
        height: 26px;
        line-height: 26px;
        text-align: center;
        display: flex;

        li:first-child {
          width: 90px;
          -moz-border-top-left-radius: 14px;
          -moz-border-bottom-left-radius: 14px;
          -webkit-border-top-left-radius: 14px;
          -webkit-border-bottom-left-radius: 14px;
          border-top-left-radius: 14px;
          border-bottom-left-radius: 14px;
        }
        li:last-child {
          width: 90px;
          -moz-border-top-right-radius: 14px;
          -moz-border-bottom-right-radius: 14px;
          -webkit-border-top-right-radius: 14px;
          -webkit-border-bottom-right-radius: 14px;
          border-top-right-radius: 14px;
          border-bottom-right-radius: 14px;
        }
        li {
          width: 80px;
          background-color: #0e1b3d;
          &:hover {
            cursor: pointer;
          }
        }
      }
      // 下载的图标
      .load-icon {
        width: 23px;
        height: 20px;

        img {
          display: block;
          width: 100%;
          vertical-align: middle;
        }
      }
    }
  }
  // 供能条形图
  #energySupply, #totalGasSupply {
    height: 300px;
  }
  // 耗能折线图
  #consumeEnergy, #otherGasline {
    height: 300px;
  }
  // 用气饼状图
  #gasChart {
    height: 250px;
    width: 300px;
  }
  .cirle-chart {
    .chart-text {
      display: flex;
      // 用电饼状图
      #powerChart {
        height: 250px;
        width: 300px;
      }
      .text-r {
        margin-top: 50px;
        height: 0;
      }
    }
  }
}
$image: '../../assets/mainImages/';
// 公用代码
body{
  min-height: 100%;
  background:#fff;
  margin: 0;
  //font-size: 1rem;/*1.4 × 10px = 14px */
  font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
}
ul,li,h1,h2,h3,h4,h5,h6,dl,dt,dd,p,input,button {
  margin:0;
  //padding:0;
  border:none;
  list-style:none;
}
input{
  outline:none;
}
a{
  text-decoration: none;
}
input[type=button], input[type=submit], input[type=file], button {
  cursor: pointer;
  outline: 0px;
  -webkit-appearance: none;
}
a:hover{
  //text-decoration: underline;
  //color:#f00;
  cursor: pointer;
}
.clear{
  clear:both;
}
.lf{
  float:left;
}
.rt{
  float:right;
}
img{
  vertical-align: bottom;
}
[v-cloak] {
  display: none;
}
.flex {
  display: flex;
}
